################################################################################### 
## 
## Hack Title:    Add new field to profile
## Hack Version:  1.2.1
## optional Part: New field is mandatory 1.0.1
## Author         Acid
## Support:	  http://www.phpbbhacks.com/forums
##
## Description:   If you want to set the new field as mandatory..
##		  If youve added more than one field duplicate the following
##		  steps and change "music" (be aware of the spelling).
##
## Required:      addfield_english.txt
##
## Files to edit: 2
##		  includes/usercp_register.php
##                templates/xxx/profile_add_body.tpl
##
################################################################################### 
## 
## Installation/Author Notes: 
## First always backup the files that you're going to edit. 
## 
################################################################################### 
##
## Versions:
##
## 1.0.1 - check for editprofile too
## 1.0   - optional part added
##
################################################################################### 
# 
#-----[ OPEN ]------------------------------------------
#  
# includes/usercp_register.php
# 
#-----[ FIND ]---------------------------------------------------
# 
	validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $music, $signature);

# 
#-----[ DELETE ]---------------------------------------------------
# 

, $music

# 
#-----[ FIND (be aware of the 3 braces) ]---------------------------------------------------
# 
				$username_sql = "username = '" . str_replace("\'", "''", $username) . "', ";
			}
		}
	}

# 
#-----[ ADD BELOW ]---------------------------------------------------
# 
# if you want to check the field only for register, you have to
# delete "$mode == 'editprofile' ||"

	if ( $mode == 'editprofile' || $mode == 'register' )
	{
		// wenn Dropdown folgendes nutzen (// vor folgender Zeile lschen)
		// if ( $music == $lang['Music_choice']['0'] )
		// und folgnde Zeile auskommentieren (// davor schreiben)
		if ( empty($music) )
		{
			$error = TRUE;
			$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
		}
	}

# 
#-----[ DELETE (2x) ]---------------------------------------------------
#
# only if youre using a dropdown menu

               		$music = ($music == $lang['Music_choice']['0']) ? '' : $music;



# 
#-----[ OPEN ]------------------------------------------
#  
# templates/xxx/profile_add_body.tpl
# 
#-----[ FIND and ADD a * after that ]---------------------------------------------------
# 
{L_MUSIC}:

################################################################################### 
################################################################################### 
###################################################################################